var str='<p>';
<#list list as doc>
<#if doc_index gt 1><#break/></#if>
str+='<a href="${doc.url}" target="_blank"><img src="${doc.picname}" width="80" height="80" style="border:1px solid #0c5073" alt=""></a>';
</#list>
str+='</p>';
str+='<ul class="elist">';
<#list list as doc>
<#if doc_index gt 5><#break/></#if>
<#if doc_index gt 1>
str+='<li><a href="${doc.url}" target="_blank">${doc.temp_title}</a></li>';
</#if>
</#list>
str+='</ul>';
document.write(str);